<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<h1 id="a">抽奖页面</h1>
		<script type="text/javascript">
			var u=document.referrer;//获取是否为空
			if(u==""){
				document.write("你没有资格抽奖");
				document.write("<h1>3秒之后跳转到首页</h1>");
				setTimeout("location.href='chop1.html'",3000);
			}else{
				document.write("恭喜你,中奖了");
			}
		</script>
	</body>
</html>
